package com.example.alibabanacosdiscoveryclient01.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author:guoq
 * @date:2025/4/28
 * @descripion:
 */
public class BookEntity {

    /**自增id*/
    private Long id;
    /**书名*/
    private String bookName;
    /**分类*/
    private String bookType;
    /**作者*/
    private String author;
    /**出版日期*/
//    @JsonFormat(pattern = "yyyy-MM-dd")
    private String publishDate;
    /**ISBN编码，国际编号*/
    private String bookCode;

    public BookEntity(String bookName, String bookType, String author, String publishDate, String bookCode) {
        this.bookName = bookName;
        this.bookType = bookType;
        this.author = author;
        this.publishDate = publishDate;
        this.bookCode = bookCode;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getBookType() {
        return bookType;
    }

    public void setBookType(String bookType) {
        this.bookType = bookType;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(String publishDate) {
        this.publishDate = publishDate;
    }

    public String getBookCode() {
        return bookCode;
    }

    public void setBookCode(String bookCode) {
        this.bookCode = bookCode;
    }
}